Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Modify  Web  Site  Service  Properties  

 Content of Modify Web Site Service Properties.vbs
MD5 Hash: A018FA6EB2607476C813EA5D8B2A41BD
' Description: Demonstration script that modifies IIS compression schemes property values.


strComputer = "."
Set objWMIService = GetObject _
("winmgmts:{authenticationLevel=pktPrivacy}\\" _
& strComputer & "\root\microsoftiisv2")

Set colItems = objWMIService.ExecQuery _
("Select * from IIsCompressionSchemesSetting")

For Each objItem in colItems
objItem.HcCompressionDirectory = "C:\Compressed_Files"
objItem.HcDoDynamicCompression = True
objItem.HcDoStaticCompression = True
objItem.DoDiskSpaceLimiting = True
objItem.HcMaxDiskSpaceUsage = 200000000
objItem.Put_
Next

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a